home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
comm
/
term
/
term_extras.lha
/
Extras
/
Tools
/
StringClip
/
StringClip.doc
< prev
next >
Wrap
Text File
|
1993-05-16
|
4KB
|
119 lines
----------------------------------------------------------------------------
StringClip 1.1
----------------------------------------------------------------------------
The files in this archive were written by Nicola Salmoria and are freely
distributable as long as the archive remains intact, and only a nominal fee
is charged for its distribution.
This software is provided "AS IS" without warranty of any kind, either
expressed or implied. By using it, you agree to accept the entire risk as to
the quality and performance of the program.
Comments, suggestions and bug reports are welcome.
Nicola Salmoria
Via Piemonte 11
53100 Siena ITALY
E-Mail: MC6489@mclink.it
Overview
--------
StringClip is a small utility which uses a new feature of Kickstart 2.0 to
provide clipboard cut & paste in standard string gadgets.
By default, the system gives you various keyboard shortcuts to control the
contents of string gadgets. Some of them are:
Right Amiga - Q Undo changes
Right Amiga - X Clear buffer
StringClip will add two new shortcuts:
Right Amiga - C Copy buffer to clipboard
Right Amiga - V Paste from clipboard
Usage
-----
Usage is exactly the same of the program "ConClip" which you can find in
your standard Workbench 2.0 (or later) disk.
StringClip can only be started from CLI. The template is
CLIPUNIT=UNIT/N,OFF/S
UNIT specifies the clipboard unit to use for cut & paste. The default is 0,
and you will usually not need to change it.
OFF turns off StringClip.
For more info, check the ConClip description in your system manuals.
You will probably want to start StringClip from your user-startup in order
to have it available at all times. The program detaches automatically from
the CLI; no need to 'run' it.
Compatibility
-------------
StringClip works fine with most programs. Some exceptions are programs with
bugged (and I repeat: BUGGED) custom string edit hooks. I've found two of
them:
- asl.library, various versions. The 'drawer' gadget works, but the 'file'
gadget will not allow cut & paste. Cut will actually work, but it will soon
after be interpreted as a shortcut for the menu item "Cancel", thus leaving
the requester.
By the way, asl requester will also have problems with the standard Amiga-Q
and Amiga-X shortcuts, if you use some international keymaps (like French).
If you experience the above problem, you can fix it using a file editor.
Load the file LIBS:asl.library, search for this hex string (actual position
in the file varies depending on library version)
302A 0006 0440 0010 6710 0440 0021 670A 5340 6706 0440 0035 662C
and replace it with
0C6C 0008 002A 673E 4E71 4E71 4E71 4E71 4E71 4E71 4E71 4E71 4E71
Commodore has been reported this bug, but it hasn't been fixed at the time
of this writing.
- term by Olaf Barthel, versions 2.4a and before, supports cut & paste by
itself, but due to a bug will make a mess of the contents of the gadget if
you try a paste when StringClip is active. The problem has been fixed in
later versions of term.
Note for programmers
--------------------
There are few examples around of a correct way to write a string edit hook,
apart from the one in RKRM: Libraries. If you do write one remember that
you MUST check sgwork->EditOp before making changes to the data Intuition
passes you. Usually, you shouldn't make changes if sgwork->EditOp is not
EO_INSERTCHAR or EO_REPLACECHAR.
If you want to intercept keys pressed together with Right Amiga (for example
to reuse them for menus) but leave system shortcuts like Amiga-Q or Amiga-X
unchanged, NEVER use sgwork->Code to decide, checking for Q or X!!!! Use
sgwork->EditOp as explained above.
Revision History
----------------
V1.0 - (v37.3, 3.12.92) First release
V1.1 - (v37.4, 16.5.93) Fixed a mungwall hit when pasting. This could be
fatal on 32-bit addressing machines (A3000 and A4000). Thanks to
Federico Giannici for the report.